/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-05-17
 * Time: 22:52
 */
public class test2 {
    public static void main(String[] args) {
        String a = "hello world";
        String b = new String("hello world");
        String c = "hello" + "world";
        String d = "hello" + new String("world");
        String e = a;
        System.out.println(a==b);
        System.out.println(a==c);
        System.out.println(a==d);
        System.out.println(a==e);

    }
}
